#ifndef BULLETS_H_
#define BULLETS_H_

#include "FrameListener.h"
#include "Image.h"
#include "Core.h"
#include "foreach.hpp"

class Bullet: public FrameListener
{
	public:

        static void Create(Image* img, int x = 0, int y = 0);
        static void Draw();
		~Bullet();
		SDL_Rect GetPosition();
		Image* GetImage();
		void Move(float X, float Y);
	private:
	Bullet(Image* img, int x = 0, int y = 0);
	bool FrameStarted(float timeSinceLastFrame);

	Image *mImage;
	float posX, posY;
	SDL_Rect mPosition;
	static std::list<Bullet*> mBullets;

};

#endif
